<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  // 创建ajax对象
  let xhr = new XMLHttpRequest();
  xhr.open("post", "");
  xhr.send();
  xhr.onload = () => {
    let i = xhr.responseText;
  }
</script>

</html>